package cn.lzy.demo;

/**
 * @Description
 * @Author lzy
 * @Date 2023/12/3 23:57
 * @Version
 **/
public class Cat extends Animal {
    private String name;

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                '}' + super.toString();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
